<template>
  <div class="app">
    <cateGory title="游戏">
      <template slot-scope="cgp">
        <ul>
          <li v-for="(g, index) in cgp.games" :key="index">{{ g }}</li>
        </ul></template
      >
    </cateGory>
    <cateGory title="游戏">
      <template slot-scope="{ games }">
        <ol>
          <li style="color: brown" v-for="(g, index) in games" :key="index">
            {{ g }}
          </li>
        </ol></template
      >
    </cateGory>
    <Category title="游戏">
      <template slot-scope="{ games }">
        <h4 v-for="(g, index) in games" :key="index">{{ g }}></h4>
      </template>
    </Category>
  </div>
</template>
<script>
// 引入组件
import cateGory from "./components/cateGory.vue";

export default {
  name: "App",
  components: {
    cateGory,
  },
};
</script>
<style>
.app,
.foot {
  display: flex;
  justify-content: space-around;
}
video {
  width: 100%;
}
img {
  width: 100%;
}
</style>
